package com.yyaccp.appinfo.service;

import com.yyaccp.appinfo.domain.AppVersion;
import com.yyaccp.appinfo.mapper.AppVersionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("appVersionService")
public class AppVersionService {

    @Autowired
    private AppVersionMapper appVersionMapper;

    public AppVersion selectByPrimaryKey(AppVersion appVersion){
        return appVersionMapper.selectByPrimaryKey(appVersion);
    }

    public int updateByPrimaryKey(AppVersion record){return appVersionMapper.updateByPrimaryKey(record);}

    public List<AppVersion> selectAppId(AppVersion appVersion){return appVersionMapper.selectAppId(appVersion);}

    public int add(AppVersion appVersion){return appVersionMapper.add(appVersion);}

    public Long selectNewVersion(AppVersion appVersion){return appVersionMapper.selectNewVersion(appVersion);}

    public int deleteAppId(Long appId){return appVersionMapper.deleteAppId(appId);}
}
